package com.cross.core;

import java.util.Iterator;

/**
 * 读取器,可从不同的源中读取记录，或实体对象等
 * 
 * @date 2009-2-4
 * @author craziness_stone
 */
public interface Reader<T> extends Iterator<T> {

	/**
	 * 关闭读取器
	 * 
	 * 2009-2-9
	 * 
	 * @author craziness_stone
	 */
	public void close();

	/**
	 * 是否可用
	 * 
	 * 2009-2-7
	 * 
	 * @author craziness_stone
	 * @return
	 */
	public boolean available();

	/**
	 * 获取表头对象
	 * 
	 * 2009-5-11
	 * 
	 * @author craziness_stone 
	 * @return
	 */
	public Header getHeader();
}
